<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
		  //1、创建被匹配的信息内容
			var str = "today is Monday";
			//2\创建正则模式/ 内容/
			var reg = /Mon/;
			//3\正则匹配
			var result = str.match(reg);
			console.log(result);
		</script>

	</head>
	<body>
	</body>
</html>
